package Sync;


import java.text.SimpleDateFormat;
import java.util.Date;

public class FileDetails {
    private String fileName;
    private long fileSize;
    private long lastModifiedTime;

    public FileDetails(String fileName, long fileSize, long lastModifiedTimestamp) {
        this.fileName = fileName;
        this.fileSize = fileSize;
        this.lastModifiedTime = lastModifiedTimestamp;
    }

    public String getFileName() {
        return fileName;
    }

    public long getFileSize() {
        return fileSize;
    }

    public long getLastModifiedTime() {
        return lastModifiedTime;
    }

    // 将时间戳格式化为字符串


    @Override
    public String toString() {
        return "FileDetails{" +
                "fileName='" + fileName + '\'' +
                ", fileSize=" + fileSize +
                ", lastModifiedTime=" + lastModifiedTime +
                '}';
    }

}
